package com.seu.dm.services;

import com.seu.dm.entities.Favorite;

import java.util.List;

/**
 * Created by 张老师 on 2017/3/9.
 */
public interface FavoriteService {
    int addNewFavorite(Favorite favorite);

    List<Favorite> findAllFavorites();

    List<Favorite> findFavoritesByBuyerId(Integer buyerId);

    int deleteFavoriteById(Integer id);

    int updateFavorite(Favorite favorite);

    Favorite findFavorite(Integer id);
}
